package cn.tm.liu.mode.strategy.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 14.05
 */
public class Main {
    public static void main(String[] args) {
        Context context = new Context(new OperationAdd());
        System.out.println(context.executeStrategy(5, 3));
        context.setStrategy(new OperationSubtract());
        System.out.println(context.executeStrategy(5, 3));
    }
}
